import 'package:flutter/material.dart';
import 'package:flutter_knows/01.%E7%BB%84%E4%BB%B6%E6%8A%BD%E5%8F%96.dart';
import 'package:flutter_knows/02.%E6%97%A0%E7%8A%B6%E6%80%81%E7%BB%84%E4%BB%B6%E4%BC%A0%E9%80%92%E5%8F%82%E6%95%B0.dart';
import 'package:flutter_knows/03.container.dart';
import 'package:flutter_knows/04.Text%E7%BB%84%E4%BB%B6.dart';
import 'package:flutter_knows/05.Image%20%E7%BB%84%E4%BB%B6.dart';
import 'package:flutter_knows/06.%E5%B8%83%E5%B1%80Column%E7%BB%84%E4%BB%B6.dart';
import 'package:flutter_knows/07.%E5%B8%83%E5%B1%80Row%E7%BB%84%E4%BB%B6.dart';
import 'package:flutter_knows/08.%E5%BC%B9%E6%80%A7%E5%B8%83%E5%B1%80.dart';
import 'package:flutter_knows/09.%E5%A0%86%E5%8F%A0.dart';
import 'package:flutter_knows/10.%E6%A1%88%E4%BE%8B-%E5%95%86%E5%93%81.dart';
import 'package:flutter_knows/11.ListView%20%E7%BB%84%E4%BB%B6.dart';
import 'package:flutter_knows/12.%E6%A1%88%E4%BE%8B-%E5%95%86%E5%93%81%E5%88%97%E8%A1%A8+ListView.dart';
import 'package:flutter_knows/13.GridView%E7%BB%84%E4%BB%B6.dart';
import 'package:flutter_knows/14.CustomScrollView%E7%BB%84%E4%BB%B6.dart';
import 'package:flutter_knows/15.%E7%8A%B6%E6%80%81%E7%BB%84%E4%BB%B6(%E9%87%8D%E8%A6%81).dart';
import 'package:flutter_knows/16.%E7%94%9F%E5%91%BD%E5%91%A8%E6%9C%9F%E9%92%A9%E5%AD%90.dart';
import 'package:flutter_knows/17.dio%20%E4%BD%BF%E7%94%A8.dart';
import 'package:flutter_knows/18.%E6%A1%88%E4%BE%8B-%E5%95%86%E5%93%81%E5%88%97%E8%A1%A8.dart';
import 'package:flutter_knows/19.%E8%B7%AF%E7%94%B1.dart';

void main() {
  // 1. 启动项目, 并传入根组件实例对象
  // 2. Center是一个容器组件，让内容居中
  // runApp(const MyApp());
  // 3. 使用 Material 的设计语言及 脚手架搭建页面基本结构
  // runApp(const MyApp());
  // runApp(const MyApp2(
  //   title: '无状态组件传递参数',
  //   content: '我是传递进去的内容',
  //   tColor: Colors.blue,
  //   cColor: Colors.purpleAccent,
  // ));
  // runApp(const GetDataDemo(
  //   title: '商品列表',
  // ));
  runApp(const NavDemo(
    title: '路由基本使用',
  ));
}

// class MyApp extends StatelessWidget {
//   const MyApp({super.key});

//   // 重写build 返回需要封装的组件即可
//   @override
//   Widget build(BuildContext context) {
//     return const Center(
//       // 3.子组件 Text 文本
//       child: Text(
//         // 内容
//         'Hello, Flutter',
//         // 文字方向
//         textDirection: TextDirection.rtl,
//         style: TextStyle(
//             color: Colors.pink, fontSize: 60.5, fontWeight: FontWeight.w900),
//       ),
//     );
//   }
// }
